package com.bxait.toymail.product.feign;

import com.bxait.com.to.es.SkuEsModel;
import com.bxait.com.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author Chen
 * @description: 远程操作es的feign接口
 * @ClassName SearchFeignService
 * @create 2023-04-14 20:31
 * @Version 1.0
 */
@FeignClient("toymail-search")
public interface SearchFeignService {
    /*
     * @param skuEsModels
     * @==============History===============<br/>
     * @Description // TODO  远程上架商品到es服务器
     * @Date 2023/4/14 20:34
     * @Author <a href="qq:2277411582@qq.com">chen</a>
     * @return
     */
    @PostMapping("/search/save/product")
    R productStatusUp(@RequestBody List<SkuEsModel> skuEsModels);
}
